<div class="table-responsive">
    <table class="table table-condensed">
        <thead class="wastebook-head">
        <tr class="wastebook-head">
            <th>商品名称</th>
            <th>商品类型</th>
            <?php
                if ($_SESSION['ADMIN'] || $_SESSION['uid'] == 2 || $_SESSION['l'] == 4){
                    echo '<th>渠道价格</th>';
                }
            ?>
            <th>会员价格</th>
            <th>零售价格</th>
            <th>总仓库</th>
            <th>文化店</th>
            <th>白露店</th>
            <th>供应商</th>
            <th>操作员</th>
        </tr>
        </thead>
        <tbody class="wastebook-list">
        <?php foreach($data['query'] as $k):?>

            <tr class="wastebook-lists">
                <td><?php echo $k['i_name']?></td>
                <td><?php echo $k['type']?></td>
                <?php
                if ($_SESSION['ADMIN'] || $_SESSION['uid'] == 2){
                    echo '<td>'.$k['c_price'].'</td>';
                }
                ?>
                <td><?php echo $k['v_price']?></td>
                <td><?php echo $k['r_price']?></td>

                <td class="<?php $this->Low($k['type'],$k['warehouse']) ?>"><?php echo $k['warehouse']?></td>

                <td class="<?php $this->Low($k['type'],$k['wh']) ?>"><?php echo $k['wh']?></td>

                <td class="<?php $this->Low($k['type'],$k['bl']) ?>"><?php echo $k['bl']?></td>

                <td><?php echo $k['s_name']?></td>
                <td><?php echo $k['o_name']?></td>
            </tr>
        <?php endforeach ?>
        </tbody>
    </table>
</div>
